// 首页api
import api from "../utils/http";
export default {
  // ---------------------------------首页ApI--------------------------------------------------------------
  // 顶端可视化数据
  getNumber () {
    return api({
      url: '/home/selectMoneyShuJu',
      method: 'get',
    })
  },
  // 获取项目收支情况
  revenueExpenditure () {
    return api({
      url: '/home/selectProjectIncomeAndPay',
      method: 'get',
    })
  },
  // 获取项目进度
  getProjectSchedule () {
    return api({
      url: '/home/selectProjectIncomeAndPay',
      method: 'get',
    })
  },
  // 获取成本
  getCost () {
    return api({
      url: '/home/selectChengBenJiHua',
      method: 'get',
    })
  },



  // 待办事项
  getToDoList (currentP, pageS) {
    return api({
      url: '/home/selectTaskAgent',
      method: 'post',
      data: {
        currentPage: currentP,
        pageSize: pageS,
        employeeId: 1
      }
    })
  },
  // 待审核
  toBeReviewed (currentP, pageS) {
    return api({
      url: '/home/selectAuditAgent',
      method: 'post',
      data: {
        currentPage: currentP,
        pageSize: pageS
      }
    })
  },
  // 获取公司新闻公告
  getNews (currentP, pageS) {
    return api({
      url: '/home/selectNotice',
      method: 'post',
      data: {
        currentPage: currentP,
        pageSize: pageS
      }
    })
  },
}